package com.luo.cloud.hystrix;

import com.luo.cloud.remote.HelloRemote;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author xiangnan
 * @date 2018/3/29 11:27
 */
@Component
public class HelloRemoteHystrix implements HelloRemote {

    @Override
    public String hello(@RequestParam(value = "name") String name) {
        return "hello " + name + ", the service failed";
    }

}
